import {formRequest} from '../formRequest'
import {request} from '../request'

export function chat_info(data){
    return request({
        url:'/api/chat/chat.php',
        data:data
    })
}
//修改是否可见
export function update_chat_info(data){
    return request({
        url:'/api/chat/updateChat.php',
        data:data
    })
}
//添加碎言碎语
export function addChat(data){
    return formRequest({
        url:'/api/chat/addChat.php',
        data:data
    })
}

//查看碎言碎语
export function details(data){
    return request({
        url:'/api/chat/detailsChat.php',
        data:data
    })
}

//修改碎言碎语文字和图片
export function update_img_text(data){
    return formRequest({
        url:'/api/chat/update_img_chat.php',
        data:data
    })
}